import App from './App.vue'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'

/******** uView ********/
import uView from '@/uni_modules/uview-ui';

/******** 配置文件 ********/
import config from './config/config.js';
Vue.prototype.$config = config;
/******** api处理 ********/
import api from './api/index';
Vue.prototype.$api = api;
/******** request请求 ********/
import request from 'common/request.js';
Vue.prototype.$request = request;

/******** store处理 ********/
import store from './store/index';
Vue.prototype.$store = store;

/******** 公共方法 ********/
import common from './common/index'
new common(Vue);

Vue.config.productionTip = false;


/*********** 实例化公共组件 ****************/
//图片对比组件
import compareImage from "@/components/compare-image/index";
Vue.component('compare-image', compareImage);

// 涂鸦
import ylGraffiti from "@/components/yl-graffiti/yl-graffiti.vue";
Vue.component('ylGraffiti', ylGraffiti);
import ylIcon from "@/components/yl-icon/yl-icon";
Vue.component('ylIcon', ylIcon);

let wx = require('weixin-js-sdk')
Vue.prototype.wx = wx

App.mpType = 'app'
const app = new Vue({
	store,
  ...App,
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif